home *** CD-ROM | disk | FTP | other *** search
/ Aminet 28 / Aminet 28 (1998)(GTI - Schatztruhe)[!][Dec 1998].iso / Aminet / dev / amos / AMOSList-0998.lzh / AMOSLIST / 000347_bounce-amos-lis…et@onelist.com_Tue Sep 22 03:33:24 1998.msg < prev    next >
Text File  |  1998-10-01  |  6KB  |  167 lines

  1. >From bounce-amos-list--1218-mcox=access.digex.net@onelist.com  Tue Sep 22 03:33:23 1998
  2. Received: from onelist.com (pop.onelist.com [209.207.164.31])
  3.     by pony-2.mail.digex.net (8.8.8/8.8.8) with SMTP id DAA16958
  4.     for <mcox@access.digex.net>; Tue, 22 Sep 1998 03:33:23 -0400 (EDT)
  5. Received: (qmail 626 invoked by alias); 22 Sep 1998 07:36:04 -0000
  6. Received: (qmail 620 invoked from network); 22 Sep 1998 07:36:01 -0000
  7. Received: from unknown (HELO boober.lineone.net) (194.75.152.84) by pop.onelist.com with SMTP; 22 Sep 1998 07:36:01 -0000
  8. Received: from belalseman (host5-171-235-170.btinternet.com [195.171.235.170]) by boober.lineone.net (8.8.5/8.8.0) with SMTP id IAA31168 for <amos-list@onelist.com>; Tue, 22 Sep 1998 08:33:16 +0100 (BST)
  9. Message-ID: <000501bde5fa$e820f2a0$aaebabc3@belalseman>
  10. From: "Infinity Productions" <infinity_productions@lineone.net>
  11. To: <amos-list@onelist.com>
  12. Date: Tue, 15 Sep 1998 08:29:52 +0100
  13. X-Priority: 3
  14. X-MSMail-Priority: Normal
  15. X-Mailer: Microsoft Outlook Express 4.72.3110.1
  16. X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
  17. Mailing-List: list amos-list@onelist.com; contact http://www.onelist.com
  18. Delivered-To: mailing list amos-list@onelist.com
  19. Precedence: bulk
  20. Reply-to: amos-list@onelist.com
  21. Mime-Version: 1.0
  22. Content-Type: multipart/alternative; boundary="----=_NextPart_000_00FE_01BDE083.026D5860"
  23. Subject: [amos-list] Re: Hey! Ne1 Like Joysticks?
  24. Status: O
  25. X-Status: 
  26.  
  27. From: "Infinity Productions" <infinity_productions@lineone.net>
  28.  
  29. This is a multi-part message in MIME format.
  30.  
  31. ------=_NextPart_000_00FE_01BDE083.026D5860
  32. Content-Type: text/plain;
  33.     charset="iso-8859-1"
  34. Content-Transfer-Encoding: quoted-printable
  35.  
  36. Hey, are you aware that the following SHORT section of code does EXACTLY =
  37. the same thing, only faster and with less stupid excess code?
  38. =20
  39.     J=3DJoy(1)
  40.     X=3DSgn(J and 8)-Sgn(J and 4)
  41.     Y=3DSgn(J and 2)-Sgn(J and 1)
  42.  
  43.     -----Original Message-----
  44.     From: John Glanville <John.Glanville@btinternet.com>
  45.     To: amos-list@onelist.com <amos-list@onelist.com>
  46.     Date: 01 September 1998 23:36
  47.     Subject: [amos-list] Hey! Ne1 Like Joysticks?
  48.    =20
  49.    =20
  50.     Hey! Look! At this=85 Ne1 want a piece of code that turns the =
  51. joystick input 2 + or -..
  52.  
  53.     Eg.
  54.  
  55.     J=3DJoy(1)    ;J=3D2 ; Joystick is Down!
  56.  
  57.     K=3DJ-2       ;k=3D0
  58.  
  59.     P#=3DJ/4.0    ;P#=3D0.5
  60.  
  61.     P=3DP#        ;P=3D0
  62.  
  63.     I=3DSgn(J)    ;I=3D1
  64.  
  65.     if P#=3DP     ;This isn=92t true 0.5<>0
  66.  
  67.     X=3DSgn(J-6)*I
  68.  
  69.     End If
  70.  
  71.     If P=3D0      ;This is true
  72.  
  73.     Y=3DI*(K+K+1) ;Y=3D1
  74.  
  75.     End If=20
  76.  
  77.     Say you push the joystick up it returns y=3D-1 X=3D0!
  78.  
  79.     If You Push Joystick Left then X=3D-1 Y=3D0
  80.  
  81.     If You Push Joystick left Diagonally Up X=3D-1 and Y=3D-1
  82.  
  83.     You Could use this in a game!! Something similar 2 tron!
  84.  
  85.     Where U only need the direction in +1=92s or =961=92s!
  86.  
  87.     I=92ve used it and found it gets rid of annoying and slow If =
  88. statements!!!!
  89.  
  90.     Or U could just Delete this as it is a pointless waste of Virtual =
  91. Paper! Unless You have printed it in which case! Help!
  92.  
  93.  
  94. ------=_NextPart_000_00FE_01BDE083.026D5860
  95. Content-Type: text/html;
  96.     charset="iso-8859-1"
  97. Content-Transfer-Encoding: quoted-printable
  98.  
  99. <!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
  100. <HTML>
  101. <HEAD>
  102.  
  103. <META content=3Dtext/html;charset=3Diso-8859-1 =
  104. http-equiv=3DContent-Type><!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 =
  105. HTML//EN"><!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
  106. <META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR>
  107. </HEAD>
  108. <BODY bgColor=3D#ffffff>
  109. <DIV><FONT color=3D#000000 size=3D2>Hey, are you aware that the =
  110. following SHORT=20
  111. section of code does EXACTLY the same thing, only faster and with less =
  112. stupid=20
  113. excess code?</FONT></DIV>
  114. <DIV><FONT color=3D#000000 size=3D2></FONT> </DIV>
  115. <DIV><FONT size=3D2>    J=3DJoy(1)<BR>    =
  116. X=3DSgn(J and=20
  117. 8)-Sgn(J and 4)<BR>    Y=3DSgn(J and 2)-Sgn(J and=20
  118. 1)<BR></FONT></DIV>
  119. <BLOCKQUOTE=20
  120. style=3D"BORDER-LEFT: #000000 solid 2px; MARGIN-LEFT: 5px; PADDING-LEFT: =
  121. 5px">
  122.     <DIV><FONT face=3DArial size=3D2><B>-----Original =
  123. Message-----</B><BR><B>From:=20
  124.     </B>John Glanville <<A=20
  125.     =
  126. href=3D"mailto:John.Glanville@btinternet.com">John.Glanville@btinternet.c=
  127. om</A>><BR><B>To:=20
  128.     </B><A =
  129. href=3D"mailto:amos-list@onelist.com">amos-list@onelist.com</A> <<A=20
  130.     =
  131. href=3D"mailto:amos-list@onelist.com">amos-list@onelist.com</A>><BR><B=
  132. >Date:=20
  133.     </B>01 September 1998 23:36<BR><B>Subject: </B>[amos-list] Hey! Ne1 =
  134. Like=20
  135.     Joysticks?<BR><BR></DIV></FONT>
  136.     <DIV><B><FONT face=3D"Courier New">
  137.     <P>Hey! Look! At this… Ne1 want a piece of code that turns =
  138. the=20
  139.     joystick input 2 + or -..</P>
  140.     <P>Eg.</P>
  141.     <P>J=3DJoy(1)    ;J=3D2 ; Joystick is Down!</P>
  142.     <P>K=3DJ-2       ;k=3D0</P>
  143.     <P>P#=3DJ/4.0    ;P#=3D0.5</P>
  144.     <P>P=3DP#        ;P=3D0</P>
  145.     <P>I=3DSgn(J)    ;I=3D1</P>
  146.     <P>if P#=3DP     ;This isn’t true =
  147. 0.5<>0</P>
  148.     <P>X=3DSgn(J-6)*I</P>
  149.     <P>End If</P>
  150.     <P>If P=3D0      ;This is true</P>
  151.     <P>Y=3DI*(K+K+1) ;Y=3D1</P>
  152.     <P>End If </P>
  153.     <P>Say you push the joystick up it returns y=3D-1 X=3D0!</P>
  154.     <P>If You Push Joystick Left then X=3D-1 Y=3D0</P>
  155.     <P>If You Push Joystick left Diagonally Up X=3D-1 and Y=3D-1</P>
  156.     <P>You Could use this in a game!! Something similar 2 tron!</P>
  157.     <P>Where U only need the direction in +1’s or =
  158. –1’s!</P>
  159.     <P>I’ve used it and found it gets rid of annoying and slow If=20
  160.     statements!!!!</P>
  161.     <P>Or U could just Delete this as it is a pointless waste of Virtual =
  162. Paper!=20
  163.     Unless You have printed it in which case!=20
  164. Help!</P></B></FONT></DIV></BLOCKQUOTE></BODY></HTML>
  165.  
  166. ------=_NextPart_000_00FE_01BDE083.026D5860--
  167.